package com.atguigu.tingshu.user.client.impl;


import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.model.user.UserInfo;
import com.atguigu.tingshu.user.client.UserInfoFeignClient;
import com.atguigu.tingshu.vo.user.UserPaidRecordVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public class UserInfoDegradeFeignClient implements UserInfoFeignClient {
    private static final Logger log = LoggerFactory.getLogger(UserInfoDegradeFeignClient.class);

    @Override
    public Result<UserInfo> getUserInfo(Long userId) {
        System.out.println("获取用户信息降级方法");
        return null;
    }

    @Override
    public Result<Map<Long, Integer>> uderIsPaidTrack(Long albumId, List<Long> trackIdList) {
        System.out.println("判断用户是否购买声音列表降级方法");
        return null;
    }

    @Override
    public Result<Boolean> isPaidAlbum(Long albumId) {
        log.info("判断用户是否购买专辑降级方法");
        return null;
    }

    @Override
    public Result<List<Long>> findUserPaidTrackIdList(Long albumId) {
        log.info("获取用户已购买声音Id列表降级方法");
        return null;
    }

    @Override
    public Result userPayRecord(UserPaidRecordVo userPaidRecordVo) {
        log.info("处理用户购买记录降级方法");
        return null;
    }

    @Override
    public Result updateVipExpireStatus() {
        log.info("更新Vip到期失效状态降级方法");
        return null;
    }
}
